import axios from '@/assets/model/httpconfig/AxiosApi';
import qs from 'qs';
import { WebApi } from '@/assets/model/httpconfig/WebApi';

export namespace recall {
	/**视频操作方法 */
	export class video {
		/**
		 *搜索视频分页列表
		 * @param parameter 数据参数
		 */
		public selectvideopage(parameter: any) {
			return axios({
				url: WebApi.backstagePath + '/recall/video/list',
				method: 'post',
				data: qs.stringify(parameter)
			});
		}
		/** 添加视频*/
		public addvideo(parameter: any) {
			return axios({
				url: WebApi.backstagePath + '/recall/video/add',
				method: 'post',
				data: qs.stringify(parameter)
			});
		}
		/** 更新视频*/
		public updatevideo(parameter: any) {
			return axios({
				url: WebApi.backstagePath + '/recall/video/edit',
				method: 'post',
				data: qs.stringify(parameter)
			});
		}
		/** 删除视频*/
		public deletevideo(parameter: any) {
			return axios({
				url: WebApi.backstagePath + '/recall/video/remove',
				method: 'post',
				data: qs.stringify(parameter)
			});
		}
	}
	/**笔记 */
	export class note {
		/**
		 *笔记列表
		 * @param parameter 数据参数
		 */
		public selectnotepage(parameter: any) {
			return axios({
				url: WebApi.backstagePath + '/recall/note/page',
				method: 'post',
				data: qs.stringify(parameter)
			});
		}
		/** 添加笔记*/
		public addnote(parameter: any) {
			return axios({
				url: WebApi.backstagePath + '/recall/note/add',
				method: 'post',
				data: qs.stringify(parameter)
			});
		}
		/** 更新笔记*/
		public updatenote(parameter: any) {
			return axios({
				url: WebApi.backstagePath + '/recall/note/edit',
				method: 'post',
				data: qs.stringify(parameter)
			});
		}
		/** 删除笔记*/
		public deletenote(parameter: any) {
			return axios({
				url: WebApi.backstagePath + '/recall/note/remove',
				method: 'post',
				data: qs.stringify(parameter)
			});
		}
	}
	/**图片 */
	export class image {
		/**
		 *图片列表
		 * @param parameter 数据参数
		 */
		public selectimagepage(parameter: any) {
			return axios({
				url: WebApi.backstagePath + '/recall/image/page',
				method: 'post',
				data: qs.stringify(parameter)
			});
		}
		/** 添加图片*/
		public addimage(parameter: any) {
			return axios({
				url: WebApi.backstagePath + '/recall/image/add',
				method: 'post',
				data: qs.stringify(parameter)
			});
		}
		/** 更新图片*/
		public updateimage(parameter: any) {
			return axios({
				url: WebApi.backstagePath + '/recall/image/edit',
				method: 'post',
				data: qs.stringify(parameter)
			});
		}
		/** 删除图片*/
		public deleteimage(parameter: any) {
			return axios({
				url: WebApi.backstagePath + '/recall/image/remove',
				method: 'post',
				data: qs.stringify(parameter)
			});
		}
	}
}
